﻿@model IEnumerable<RazzzorTest.Models.New>
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section picture
{
    <div id='picture'>
        ZDJĘCIE
    </div>
}
<div>
    @(new HtmlString(ViewBag.WellcomMessage))
</div>
<p>
    @Html.ActionLink("Zmineń widomość", "Edit")
</p>
<div>
    @foreach (var item in Model)
    {
        <div class="newsTitle">@item.Title</div>
        <div class="newsContent">
            @(new HtmlString(item.Content))
        </div>
    }
</div>
<p>
    @Html.ActionLink("Dodaj wiadomość ", "Create", "News")
</p>
<p>
    @User.Identity.Name</p>
